ccR.Rogue.Talent = {
	-- Tier 1
		-- Nightstalker 
		-- Subterfuge
		-- Shadow Focus
	-- Tier 2
		Deadly_Throw = 
		function()
			if ccR.Spell.Is.Ready(DEADLY_THROW) then
				for x = 1, # ccR_Enemies_In_Combat do
					local vUnit = ccR_Enemies_In_Combat[x]
					if ccR.Unit.Is.Moving(vUnit)
					or (ccR.Player.Combo_Points() == 5
					 	and (
					 		ccR.Unit.Is.CastingAtPlayer(vUnit)
					 		or
					 		ccR.Unit.Is.ChannelingAtPlayer(vUnit)
					 		)
					 	)
					and ccR.Player.Is.Facing(vUnit)
					then
						ccR.Cast.Attack(DEADLY_THROW, vUnit)
					end
				end
			end
		end,
		-- Nerve Strike 
		Combat_Readiness = 
		function()
			if ccR.Spell.Is.Ready(COMBAT_READINESS) then
				for x = 1, # ccR_Enemies_In_Combat do
					local vUnit = ccR_Enemies_In_Combat[x]
					if ccR.Unit.TargetName(vUnit) == ccR.Player.Name() then
						ccR.Cast.Spell(COMBAT_READINESS)
					end
				end
			end
		end,
	-- Tier 3
		-- Cheat Death
		-- Leeching Poison
		-- Elusiveness
	-- Tier 4
		-- Cloak and Dagger
		Shadow_Step =
		function() 
			if ccR.Spell.Is.Ready(SHADOWSTEP)
			and ccR.Player.Has.Talent(SHADOWSTEP) 
			and ccR.Spell.CanAttack(SHADOWSTEP) 
			and ccR.Target.Distance() >= 10 
			then 
				ccR.Cast.Attack(SHADOWSTEP)
			 end
		end,
		Burst_of_Speed =
		function()	
			if ccR.Spell.Is.Ready(BURST_OF_SPEED)
			and (not ccR.Player.Has.Buff(BURST_OF_SPEED) or ccR.Player.BuffDuration(BURST_OF_SPEED) <= 0.5) 
			and ccR.Player.Is.Moving() 
			and ccR.Player.Is.InStealth() 
			then 
				ccR.Cast.Spell(BURST_OF_SPEED) 
			end 
		end,
	-- Tier 5
		-- Pray on the Weak
		-- Internal Bleeding
		-- Dirty Tricks
	-- Tier 6
		Shuriken_Toss = 
		function() 
			if ccR.Spell.CanAttack(SHURIKEN_TOSS) 
			and ccR.Player.Has.Talent(SHURIKEN_TOSS)
			and not ccR.Player.Has.Buff(SHURIKEN_TOSS_BUFF) 
			then 
				ccR.Cast.Attack(SHURIKEN_TOSS)
			end
		end,
		Marked_for_Death = 
		function(cp)
			if cp == nil then cp = 0 end
			if ccR.Spell.Is.Ready(MARKED_FOR_DEATH)
			and ccR.Player.Has.Talent(MARKED_FOR_DEATH)
			and ccR.Player.Combo_Points() <= cp
			then
				for x = 1, # ccR_Enemies_In_Combat do
					local vUnit = ccR_Enemies_In_Combat[x]
					if ccR.Spell.CanAttack(MARKED_FOR_DEATH, vUnit)
					and ccR.Unit.TimeToDie(vUnit) <= 60
					then
						ccR.Cast.Attack(MARKED_FOR_DEATH, vUnit)
					end
				end
			end
		end,
		-- Anticipation
	-- Tier 7
		-- Venom Rush
		Shadow_Reflection = function() end,
		Death_from_Above = function() end,

}
setmetatable(ccR.Rogue.Talent, ccR.Rogue)